package cn.shengchao.qywx.infrastrure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "qywx_rule_main")
public class QywxRuleMain {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 规则名称
     */
    @TableField(value = "rule_name")
    private String ruleName;

    /**
     * 优先级
     */
    @TableField(value = "priority")
    private Integer priority;

    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    private Date lastUpdateTime;

    /**
     * 生效开始时间
     */
    @TableField(value = "valid_start_time")
    private Date validStartTime;

    /**
     * 生效结束时间
     */
    @TableField(value = "valid_end_time")
    private Date validEndTime;

    /**
     * 规则状态0草稿 1生效 2禁用
     */
    @TableField(value = "rule_status")
    private Integer ruleStatus;
}